package com.sakura.probe.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("pb_video")
@ApiModel(value = "视频对象",description = "存储视频的相关信息")
public class Video {
    @ApiModelProperty(value = "视频id")
    private Long videoId;

    @ApiModelProperty(value = "视频所处的动态id")
    private Long topicId;

    @ApiModelProperty(value = "视频地址")
    private String videoUrl;

    @ApiModelProperty(value = "视频描述")
    private String videoDesc;

    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date lastEditTime;

    public Video(){ }

    public Video(Long topicId,String videoUrl){
        this.topicId = topicId;
        this.videoUrl = videoUrl;
    }



}
